package com.hx.jvm.jvm.gc;

public class Main5 {

    /**
     * JVM参数：-XX:+UseSerialGC -verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:-HandlePromotionFailure=false
     * <p>
     * Unrecognized VM option 'HandlePromotionFailure=false'
     */

    public static void main(String[] args) {
        int _1MB = 1024 * 1024;
        byte[] allowcation1, allowcation2, allowcation3, allowcation4, allowcation5, allowcation6, allowcation7;
        allowcation1 = new byte[2 * _1MB];
        allowcation2 = new byte[2 * _1MB];
        allowcation3 = new byte[2 * _1MB];
        allowcation1 = null;
        allowcation4 = new byte[2 * _1MB];
        allowcation5 = new byte[2 * _1MB];
        allowcation6 = new byte[2 * _1MB];
        allowcation4 = null;
        allowcation5 = null;
        allowcation6 = null;
        allowcation6 = new byte[2 * _1MB];


    }

}
